#pragma once
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#include <stdio.h>
#include <iostream>
#include "LongfileParser.h"
#include "DateTimeStamp.h"
#include "CompressData.h"

using namespace std;

int main(){
	EntryCMCollection *e=new EntryCMCollection();
	LongfileParser *f=new LongfileParser(e);
	f->getLine();
	e->print();
	system("pause");
	delete(f);
	return 0;
}

int Xmain(){
	EntryCMCollection *e=new EntryCMCollection();
	EntryCM a=EntryCM(12,13,34,12,53,12,11,"BBBBB","hakdjlf aab");
	EntryCM b=EntryCM(12,13,34,12,53,12,11,"BBBBB","hakdjlf aab");
	EntryCM c=EntryCM(12,13,34,12,53,12,11,"BBBBB","hakdjlf aaa");
	EntryCM d=EntryCM(12,13,34,12,53,12,11,"BBBBB","hakdjlf aaa");
	EntryCM f=EntryCM(12,13,34,12,53,12,11,"BBBBB","hakdjlf aaa");
	EntryCM g=EntryCM(12,13,34,12,53,12,11,"BBBBB","hakdjlf aaa");
	EntryCM h=EntryCM(12,13,34,12,53,12,22,"GGGGG","hakdjlf");
	EntryCM i=EntryCM(11,11,111,11,53,11,11,"HHHHHH","*******");
	//EntryCM *j=new EntryCM(11,11,111,11,53,11,11,"HHHHHH","*******");
	a.setDate(2012,10,23);
	a.setTime(20,15,00);
	e->add(a);
	e->add(b);
	e->add(c);
	e->add(d);
	e->add(f);
	e->add(g);
	e->print();

	CompressData *compr=new CompressData(e);
	compr->findRedundancy();
	e->print();
	delete e;
	delete compr;
	system("pause");
	_CrtDumpMemoryLeaks ( ) ;
	return 0;
}